Skip to content

add svgr loader for icons#21248

Merged
kerryarchibald merged 7 commits intodevelopfrom
kerryarchibald/icon
Mar 2, 2022
Merged

add svgr loader for icons#21248
kerryarchibald merged 7 commits intodevelopfrom
kerryarchibald/icon

Conversation

@kerryarchibald
Copy link
Copy Markdown
Contributor

@kerryarchibald kerryarchibald commented Mar 1, 2022

Add svgr loader for icons, so they can be imported directly in react.

import { Icon as FavoriteIcon } from `../icons/favorite.svg`;

<FavoriteIcon />

See matrix-org/matrix-react-sdk#7928 for more context


This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

Kerry Archibald added 2 commits March 1, 2022 13:07
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
Kerry Archibald added 2 commits March 1, 2022 14:12
Signed-off-by: Kerry Archibald <[email protected]>
@kerryarchibald kerryarchibald marked this pull request as ready for review March 1, 2022 13:25
@kerryarchibald kerryarchibald requested a review from a team as a code owner March 1, 2022 13:25
Kerry Archibald added 2 commits March 1, 2022 14:33
Signed-off-by: Kerry Archibald <[email protected]>
Signed-off-by: Kerry Archibald <[email protected]>
@kerryarchibald
Copy link
Copy Markdown
Contributor Author

why img and not presentation?

Updated to presentation

Copy link
Copy Markdown
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise, particularly considering code review was approved on the other half

Comment on lines +2 to +3
Copyright 2021 Šimon Brandner <[email protected]>
Copyright 2022 The Matrix.org Foundation C.I.C.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This copyright looks a bit incorrect - I think it should just be the foundation?

Signed-off-by: Kerry Archibald <[email protected]>
@kerryarchibald kerryarchibald enabled auto-merge (squash) March 2, 2022 09:07
@kerryarchibald kerryarchibald merged commit 9a17a61 into develop Mar 2, 2022
@kerryarchibald kerryarchibald deleted the kerryarchibald/icon branch March 2, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants